﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using 简单三层架构.BLL;

namespace 简单三层架构
{
    public partial class ShowItems : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.QueryString["keyword"] != null)
                {
                    string keyword = Request.QueryString["keyword"];

                    ItemList1.Keyword = keyword;
                    ItemList1.DataBind();
                }
                else if (Request.QueryString["categoryid"] != null)
                {
                    string categoryId = Request.QueryString["categoryid"];

                    ItemList1.CategoryId = categoryId;
                    ItemList1.DataBind();
                }
                else
                {
                    
                }
            }
        }
    }
}